import { request } from '@/sheep/request';

const route = {
  path: 'applicationbd',
  name: 'seller.admin.applicationbd',
  component: () => import('./index.vue'),
  meta: {
    title: '商家合作',
  },
};

const api = {
  list: (params) =>
    request({
      url: 'operations/admin/cooperation/crud',
      method: 'GET',
      params,
    }),
  audit: (id, data) =>
    request({
      url: `operations/admin/cooperation/crud/audit/${id}`,
      method: 'PUT',
      data,
    }),
  detail: (id) =>
    request({
      url: `operations/admin/cooperation/crud/${id}`,
      method: 'GET',
    }),
};

export { route, api };